<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of listarAtencionesLista
 *
 * @author Suco
 */
class listarAtencionesLista extends ControladorSet {
    
    public function buscarValores() {
        
        $consulta->conexion->consultaLibre("SELECT * FROM TBL_ATENCION");
        $fila=  mysql_fetch_array($consulta);
        
        $codigoHTML="";
        do{
            
        $codigoHtml=$codigoHtml."<tr>";
            
            $codigoHtml=$codigoHtml."<td>".$fila[0]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[1]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[2]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[3]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[4]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[5]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[6]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[7]."</td>";
            $codigoHtml=$codigoHtml."<td>".$fila[8]."</td>";
 
 
 $consultaN=consultaLibre("SELECT TIT_NOMBRE FROM TBL_TITULAR WHERE TIT_CODIGO='".$fila[2]."'");
 $filaD=mysql_fetch_array($consultaN);
 
 $consultaD=consultaLibre("SELECT DIV_NOM_BRE FROM TBL_DIVISION WHERE DIV_CODIGO='".$fila[1]."'");
 $filaN=mysql_fetch_array($consultaD);
            
$codigoHtml=$codigoHtml."<td><a href='./pdf.php?codA=$fila[0]&'>Imprimir</a></td>";
            
            
            $codigoHtml=$codigoHtml."</tr>";
            
            
            
        }while($fila=  mysql_fetch_array($consulta));
                
    }

    public function setDiccionario() {
        
    }

    public function setValorSesion() {
        
    }

//put your code here
}
